package com.pi.base.service;

import com.pi.base.common.BasePage;
import com.pi.base.common.BaseResult;
import com.pi.community.dto.CommunityDto;
import com.pi.base.entity.SysGroup;
import com.pi.base.entity.SysUser;

public interface ISysGroupService {
	
	public SysGroup getGroupById(int groupId) throws Exception;
	
	public SysGroup getCompanyByGroup(SysGroup selectGroup) throws Exception;

	public BasePage<SysUser> listUserByGroupId(int groupId,int page,int rows) throws Exception;

    public void insertSysGroup(SysGroup newGroup) throws Exception;
    
    public int countGroupCode(Integer groupId,String groupCode) throws Exception;
    
    /**
     * 修改分组信息，同时对组用户的信息进行修改
     * @param updateGroup
     * @return
     * @throws Exception
     */
    public BaseResult updateSysGroup(SysGroup updateGroup) throws Exception;
    
    /**
     * 删除分组
     * @param groupId
     * @return
     * @throws Exception
     */
    public BaseResult deleteGroup(int groupId) throws Exception;

    /**
     * 新增物业公司的group
     * @param communityDto
     * @return
     * @throws Exception
     */
    public BaseResult addReCompanyWithGroup(CommunityDto communityDto) ;
}
